<?php

namespace App\Http\Admin\Controllers\Order;


use App\Http\Admin\Services\Order\OrderService;
use App\Http\Admin\Services\Order\OrderUserService;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;


class OrderUserController extends Controller
{
    protected $service;

    public function __construct(OrderUserService $orderUserService)
    {
        $this->service = $orderUserService;
    }

    /*
     *
     * */
    public function index(){
        return view('order.order_user');
    }

    public function list(Request $request){
        $conditions = $request->all();
        $result = $this->service->list($conditions);
        return res('ok',$result);
    }



    public function userRateGenerate(){
        $result = $this->service->userRateGenerate();
        return res('ok',$result);
    }









}